package ntd.util.frame.action.database;

import cn.hutool.core.util.StrUtil;
import com.c.opt.ComOpt;
import com.ToolOpt;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionInfo;
import ntd.action.bo.ActionOutBo;

public class ActionTableRemove extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("数据删除", "action-table-remove", new ActionTableRemove());
    }

    @Override
    public ActionOutBo handle() {
        
        ComOpt<Object> comOpt = ToolOpt.get(actionInBo.getDataCode(), actionInBo.dsId());

        return new ActionOutBo(comOpt.removeById(actionInBo.getParamStr("id")));
    }

}
